#!/usr/bin/env bash
TOKEN=$(cat /srv/ipingus6/token.conf)
IP=$(ip a | grep 2001 | awk '{print $2}' | awk -F '/' '{print $1}')
curl -sSL "https://freedns.afraid.org/dynamic/update.php?$TOKEN&address=$IP" >> /tmp/ipingus6.log 2>&1